package com.ruoyi.course.domain;

import com.ruoyi.ex.domain.ExQuestion;
import lombok.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 培训课件对象 course_ware
 *
 * @author zzx
 * @date 2023-03-29
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@ToString
public class CourseWare extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 用户编号
     */
    private Long userId;

    /**
     * 机构编号
     */
    private Long deptId;

    /**
     * 章节编号
     */
    @Excel(name = "章节编号")
    private Long sectionId;

    /**
     * 课件名称
     */
    @Excel(name = "课件名称")
    private String name;

    /**
     * 缩略图
     */
    @Excel(name = "缩略图")
    private String thumbnail;

    /**
     * 视频
     */
    @Excel(name = "视频")
    private String video;

    /**
     * 视频时长
     */
    @Excel(name = "视频时长")
    private String duration;

    /**
     * 开放类型
     */
    @Excel(name = "开放类型")
    private Integer openType;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private Integer status;

    /**
     * 观看次数
     */
    @Excel(name = "观看次数")
    private Integer watchCount;

    /**
     * 预留字段1
     */
    private String reservedOne;

    /**
     * 预留字段2
     */
    private String reservedTwo;

    /**
     * 题目列表
     */
    private List<ExQuestion> questionList;

    /**
     * 评论列表
     */
    private List<CourseWareComment> commentList;

    /**
     * 是否已经观看
     */
    private Boolean watch = false;

    /**
     * 学习时长管控
     */
    private Boolean studyDurationControl;

}
